/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Seguridad.LogAcciones.Vista;

import Seguridad.LogAcciones.Controlador.FiltrosLogAccionesControlador;
import sape.Controlador;
import sape.MenuControlador;

/**
 *
 * @author Melissa
 */
public class FiltrosLogAcciones extends javax.swing.JInternalFrame {
 public Controlador controlador;
    /**
     * Creates new form FiltrosLogAcciones
     */
    public FiltrosLogAcciones() {
        initComponents();
    }
        public FiltrosLogAcciones(MenuControlador menuControlador) {
        this.controlador=new FiltrosLogAccionesControlador(this,menuControlador);
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        buttonGroup3 = new javax.swing.ButtonGroup();
        jPanel9 = new javax.swing.JPanel();
        canvas6 = new java.awt.Canvas();
        canvas7 = new java.awt.Canvas();
        lbBienvenido = new javax.swing.JLabel();
        lbNombreApellido = new javax.swing.JLabel();
        lbNombreCargo = new javax.swing.JLabel();
        lbReporteLog = new javax.swing.JLabel();
        jPanel7 = new javax.swing.JPanel();
        lbFiltros = new javax.swing.JPanel();
        lbTipoUsuario = new javax.swing.JPanel();
        cmbTipoUsuario = new javax.swing.JComboBox();
        lbTipo = new javax.swing.JLabel();
        pnlIntervaloFechas = new javax.swing.JPanel();
        lbFechaInicio = new javax.swing.JLabel();
        cmbFechaInicio = new javax.swing.JTextField();
        lbFechaFin = new javax.swing.JLabel();
        cmbFechaFin = new javax.swing.JTextField();
        btnGenerar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel9.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 5, true));

        lbBienvenido.setFont(new java.awt.Font("Ubuntu", 1, 12)); // NOI18N
        lbBienvenido.setForeground(java.awt.Color.gray);
        lbBienvenido.setText("Bienvenido,");

        lbNombreApellido.setFont(new java.awt.Font("Ubuntu", 1, 12)); // NOI18N
        lbNombreApellido.setForeground(java.awt.Color.gray);
        lbNombreApellido.setText("Nombre Apellido");

        lbNombreCargo.setFont(new java.awt.Font("Ubuntu", 1, 12)); // NOI18N
        lbNombreCargo.setForeground(java.awt.Color.gray);
        lbNombreCargo.setText("Nombre del Cargo");

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(canvas6, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(lbBienvenido)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lbNombreApellido)
                    .addComponent(lbNombreCargo))
                .addGap(96, 96, 96)
                .addComponent(canvas7, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(canvas6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(canvas7, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbBienvenido)
                    .addComponent(lbNombreApellido))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lbNombreCargo)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        lbReporteLog.setFont(new java.awt.Font("Ubuntu", 1, 12)); // NOI18N
        lbReporteLog.setForeground(java.awt.Color.gray);
        lbReporteLog.setText("Reporte Log de Acciones");
        lbReporteLog.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jPanel7.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 5, true));

        lbFiltros.setBorder(javax.swing.BorderFactory.createTitledBorder("Filtros"));

        lbTipoUsuario.setBorder(javax.swing.BorderFactory.createTitledBorder("Por tipo de usuario"));

        cmbTipoUsuario.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lbTipo.setFont(new java.awt.Font("Ubuntu", 1, 12)); // NOI18N
        lbTipo.setForeground(java.awt.Color.gray);
        lbTipo.setText("Tipo");

        javax.swing.GroupLayout lbTipoUsuarioLayout = new javax.swing.GroupLayout(lbTipoUsuario);
        lbTipoUsuario.setLayout(lbTipoUsuarioLayout);
        lbTipoUsuarioLayout.setHorizontalGroup(
            lbTipoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lbTipoUsuarioLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lbTipo)
                .addGap(67, 67, 67)
                .addComponent(cmbTipoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 27, Short.MAX_VALUE))
        );
        lbTipoUsuarioLayout.setVerticalGroup(
            lbTipoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lbTipoUsuarioLayout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addGroup(lbTipoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbTipo)
                    .addComponent(cmbTipoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(45, Short.MAX_VALUE))
        );

        pnlIntervaloFechas.setBorder(javax.swing.BorderFactory.createTitledBorder("Intervalo de fechas"));

        lbFechaInicio.setFont(new java.awt.Font("Ubuntu", 1, 12)); // NOI18N
        lbFechaInicio.setForeground(java.awt.Color.gray);
        lbFechaInicio.setText("Fecha Inicio");

        cmbFechaInicio.setEnabled(false);

        lbFechaFin.setFont(new java.awt.Font("Ubuntu", 1, 12)); // NOI18N
        lbFechaFin.setForeground(java.awt.Color.gray);
        lbFechaFin.setText("Fecha Fin");

        cmbFechaFin.setEnabled(false);
        cmbFechaFin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbFechaFinActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIntervaloFechasLayout = new javax.swing.GroupLayout(pnlIntervaloFechas);
        pnlIntervaloFechas.setLayout(pnlIntervaloFechasLayout);
        pnlIntervaloFechasLayout.setHorizontalGroup(
            pnlIntervaloFechasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIntervaloFechasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlIntervaloFechasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lbFechaInicio)
                    .addComponent(lbFechaFin))
                .addGap(41, 41, 41)
                .addGroup(pnlIntervaloFechasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cmbFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmbFechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 25, Short.MAX_VALUE))
        );
        pnlIntervaloFechasLayout.setVerticalGroup(
            pnlIntervaloFechasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIntervaloFechasLayout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addGroup(pnlIntervaloFechasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbFechaInicio)
                    .addComponent(cmbFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(pnlIntervaloFechasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbFechaFin)
                    .addComponent(cmbFechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btnGenerar.setText("Generar");

        javax.swing.GroupLayout lbFiltrosLayout = new javax.swing.GroupLayout(lbFiltros);
        lbFiltros.setLayout(lbFiltrosLayout);
        lbFiltrosLayout.setHorizontalGroup(
            lbFiltrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lbFiltrosLayout.createSequentialGroup()
                .addContainerGap(35, Short.MAX_VALUE)
                .addComponent(lbTipoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(pnlIntervaloFechas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20))
            .addGroup(lbFiltrosLayout.createSequentialGroup()
                .addGap(240, 240, 240)
                .addComponent(btnGenerar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        lbFiltrosLayout.setVerticalGroup(
            lbFiltrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lbFiltrosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(lbFiltrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(lbTipoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlIntervaloFechas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(36, 36, 36)
                .addComponent(btnGenerar)
                .addContainerGap(227, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lbFiltros, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lbFiltros, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lbReporteLog, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lbReporteLog)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(42, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cmbFechaFinActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmbFechaFinActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cmbFechaFinActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FiltrosLogAcciones.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FiltrosLogAcciones.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FiltrosLogAcciones.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FiltrosLogAcciones.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FiltrosLogAcciones().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnGenerar;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.ButtonGroup buttonGroup3;
    private java.awt.Canvas canvas6;
    private java.awt.Canvas canvas7;
    private javax.swing.JTextField cmbFechaFin;
    private javax.swing.JTextField cmbFechaInicio;
    private javax.swing.JComboBox cmbTipoUsuario;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JLabel lbBienvenido;
    private javax.swing.JLabel lbFechaFin;
    private javax.swing.JLabel lbFechaInicio;
    private javax.swing.JPanel lbFiltros;
    private javax.swing.JLabel lbNombreApellido;
    private javax.swing.JLabel lbNombreCargo;
    private javax.swing.JLabel lbReporteLog;
    private javax.swing.JLabel lbTipo;
    private javax.swing.JPanel lbTipoUsuario;
    private javax.swing.JPanel pnlIntervaloFechas;
    // End of variables declaration//GEN-END:variables
}
